package com.wtwd.campus.vcom.common;

/**
 * @Author: ldaoliang
 * @DateTime: 2022/1/4 15:56
 * @Description:
 */
public class ResponseEntity {

    private int code;
    private String message;
    private RequestId data ;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public RequestId getData() {
        return data;
    }

    public void setData(RequestId requestId) {
        this.data = requestId;
    }

    public ResponseEntity(RespCode respCode,boolean success,String requestId) {
        this.code = respCode.getCode();
        this.message = respCode.getMsg();
        this.data = new RequestId(success,requestId);
    }
}
